package com.example.composableexample

import androidx.compose.material3.RadioButton
import androidx.compose.runtime.Composable
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.tooling.preview.Preview

/**
 * author: LiLiang
 * createTime: 2022/9/28-18:18
 * remark:
 **/

@Preview
@Composable
fun RadioButtonSimple() {
    var selected by remember {
        mutableStateOf(false)
    }
    RadioButton(selected = selected, onClick = { selected = !selected })
}